package cn.mju.tankfighterbackend.dao

import cn.mju.tankfighterbackend.entity.game.Game
import org.springframework.data.jpa.repository.Query
import org.springframework.data.repository.CrudRepository
import org.springframework.stereotype.Repository

@Repository
interface GameRepository:CrudRepository<Game,Long> {
    @Query("""select max(id) from Game """)
    fun getLastId():Long



}